/*
 * @Author: 撒哈拉的花儿 30940518@qq.com
 * @Date: 2023-08-20 00:52:44
 * @LastEditors: 撒哈拉的花儿 30940518@qq.com
 * @LastEditTime: 2023-08-20 09:12:42
 * @FilePath: \qy_portal_foreend\src\api\Bl\BlSuppliers.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询供应商列表
export function listBlSuppliers(query) {
  return request({
    url: '/bl/suppliers/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详细
export function getBlSuppliers(supplierId) {
  return request({
    url: '/bl/suppliers/' + parseStrEmpty(supplierId),
    method: 'get'
  })
}

// 新增供应商
export function addBlSuppliers(data) {
  return request({
    url: '/bl/suppliers',
    method: 'post',
    data: data
  })
}

// 修改供应商
export function updateBlSuppliers(data) {
  return request({
    url: '/bl/suppliers',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delBlSuppliers(supplierId) {
  return request({
    url: '/bl/suppliers/' + supplierId,
    method: 'delete'
  })
}
